import bus from "@/bus";
import { renderButton } from '@/util';
let data = {
  status: 'pass',
  totalItem: 1,
  pageSize: window.$pageSize,
  currentPage: 1,
  form: {
    companyname: '',
  },
  columns: [{
    type: 'selection',
    width: 60,
    align: 'left'
  },{
    title: '联系人',
    key: 'distributorContactName',
    align: 'left',
    minWidth: 150
  },{
    title: '手机号',
    key: 'distributorContactPhone',
    align: 'left',
    minWidth: 150
  },{
    title: '经销商名',
    key: 'distributorName',
    align: 'left',
    minWidth: 250
  },{
    title: '部门',
    key: 'departmentName',
    align: 'left',
    minWidth: 200
  },{
    title: '科室',
    key: 'departmentParentName',
    align: 'left',
    minWidth: 200
  }, {
    title: '操作',
    align: 'right',
    minWidth: 120,
    render: (h, params) => {
      return (
        <div>
          { renderButton(h, { text: '删除', confirm: true, type: "primary" }, ()=>{ bus.$emit("deletItem", params.row)})}
        </div>
      )
    }
  }],
  data: []
}
export default data;
